#pragma once
#ifndef WINDOW_H
#define WINDOW_H

#include <Windows.h>
#include "ImageBuffer.h"

namespace Graphics
{
	class Window
	{
	public:

		Window(int width, int height);
		~Window();
		void Present();
		bool renderingLocked();

		inline int getWidth() { return _width; };
		inline int getHeight() { return _height; };

		inline ImageBuffer* getBuffers() { return _buffers; };
		inline int getCurrentBufferPointer() { return _currentBuffer; };

	private:
		int _width;
		int _height;
		int _currentBuffer;
		bool _renderingLocked;
		ImageBuffer* _buffers;
		static HANDLE wHnd;
		static HANDLE rHnd;
	};
}

#endif